Skip to content

Conversation

bjohansebas
Copy link
Member

As the title says, and other folders are added that wouldn't appear in a real project and would only create noise

@bjohansebas bjohansebas requested a review from kjugi January 9, 2025 22:17
@bjohansebas bjohansebas marked this pull request as draft January 9, 2025 22:18
Copy link

socket-security bot commented Jan 9, 2025

New dependencies detected. Learn more about Socket for GitHub ↗︎

Package New capabilities Transitives Size Publisher
npm/[email protected] shell Transitive: environment, filesystem +22 180 kB jamestalmage

View full report↗︎

@bjohansebas bjohansebas marked this pull request as ready for review January 9, 2025 22:26
"dependencies": {
"commander": "^12.1.0",
"fast-glob": "^3.3.2",
"is-git-clean": "^1.1.0",
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Can we try to use child_process exec from nodejs instead of external lib?
https://nodejs.org/api/child_process.html#child_processexeccommand-options-callback

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We can, but if this package already does its job well, why not use it?

Copy link
Member

@kjugi kjugi Jan 11, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Shouldn't be that hard to achieve what you want with this proposal. It's probably a different story when something is complex or defeats the purpose of the library (for example commander).

If I had to choose between 10 different scripts vs 10 different packages for small or rather simple things I would pick the first option. It's better as you control this stuff and what it does.

If the given proposal with child_rocess can't be done easily we can revisit this topic

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@kjugi It's not something I would want to create and maintain. Having this package frees us from that work. I don't mind if you do it, but I won't be doing it.

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

sure, I can visit this when I have some time. If I fail I want to use execa (or similar) to keep it open for similar ideas in the future

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yep, you can use it, although it might be something for the future. I'd like to add this protection before launching it, if you agree. If not, we can leave it for the future.

Copy link
Member

@kjugi kjugi left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

small changes required

@bjohansebas bjohansebas marked this pull request as draft January 13, 2025 18:44
@bjohansebas bjohansebas marked this pull request as ready for review January 28, 2025 00:47
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants